package com.cloudalibaba.gounanjiaoapi.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.common.utils.PageUtils;
import com.common.utils.Query;

import com.cloudalibaba.gounanjiaoapi.dao.OrderitemDao;
import com.cloudalibaba.gounanjiaoapi.entity.OrderitemEntity;
import com.cloudalibaba.gounanjiaoapi.service.OrderitemService;


@Service("orderitemService")
public class OrderitemServiceImpl extends ServiceImpl<OrderitemDao, OrderitemEntity> implements OrderitemService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OrderitemEntity> page = this.page(
                new Query<OrderitemEntity>().getPage(params),
                new QueryWrapper<OrderitemEntity>()
        );

        return new PageUtils(page);
    }

}